
#ifndef Files_h
#define Files_h

using namespace std;

#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef _WIN32
#include <io.h>
#include <stdio.h>
#endif

namespace oal {
	class noFileExists{};

	class files {
	private:
		fstream openFile;
		std::string filename;
		std::string method;
	public:
				files();
				files(string fileName, string method="r");
				~files();
		bool	is(void);
		string	getContent(void);
		bool	putContent(std::string);
		bool	isFile(void);
		bool	erase(void);
		std::string getFromStdin();
	};
};
#endif

